<script type="text/javascript"> _translations = { "OK": "OK", "Now": "Now", "Today": "<%="Today".t%>" }; Date.weekdays = $w("0 1 2 3 4 5 6"); Date.months = $w("<%="Jan".t%> <%="Feb".t%> <%="Mar".t%> <%="Apr".t%> <%="May".t%> <%="Jun".t%> <%="Jul".t%> <%="Aug".t%> <%="Sep".t%> <%="Oct".t%> <%="Nov".t%> <%="Dec".t%>"); </script>
<!--[form:project]-->
<table class=input>
<tr><td width=120><label for="project_name"><%='Project Name'.t%>:</label></td>
<td colspan=3><%= text_field 'project', 'name',:size=>"50",:class=>'big_font'%>*(<%='MUST'.t%>)</td></tr>

<tr><td><label for="project_info"><%='Project People'.t%>:</label></td>
<td colspan=3>
<%=check_box_tag "all",'',@project.id.nil?,{:onclick=>"togglePeople('all_user')",:id=>'all_user'}%>
  <strong><%="All of the %s" / @cur_user.company.name%></strong><br/>
<%@cur_user.company.users.each do |u|%>
  <%=check_box_tag "user_ids[]",u.id,(@project.id.nil? ? true : @project.users.include?(u)),:class=>'all_user',:onclick=>"$('all_user').checked = false"%><%=u.name%>
<%end%>
</td></tr>
<tr><td colspan=4>
  <span id='show_more_options'>
    <%=link_to image_tag("arrow_bellow.gif",:border=>0) + " Show more options".t ,"#",:onclick=>"Element.show('more_option');Element.hide('show_more_options');Element.show('hide_more_options')"%>
  </span>
  <span id='hide_more_options' style="display:none">
    <%=link_to image_tag("arrow_right.gif",:border=>0) + " Hide more options".t ,"#",:onclick=>"Element.hide('more_option');Element.show('show_more_options');Element.hide('hide_more_options')"%>
  </span>
</td>
</tr>
<tr><td colspan=4>
<div id='more_option' style="display:none">
<table class=input style="border:0px">
<tr><td width=113><label for="project_info"><%='Customer'.t%>:</label></td>
<td colspan=3><%= text_field 'project', 'customer',:size=>30  %></td></tr>

<tr><td><label for="project_general_info"><%='Start at'.t%>:</label></td>
<td><%= calendar_date_select_tag 'project[start_at]',(@project.start_at.nil? ? Time.now.strftime("%Y-%m-%d") : @project.start_at.strftime("%Y-%m-%d")),:buttons=>false%></td> 
<td><label for="project_general_info"><%='End at'.t%>:</label></td>
<td><%= calendar_date_select_tag 'project[end_at]',@project.end_at.nil? ? nil : @project.end_at.strftime("%Y-%m-%d"),:buttons=>false%></td></tr>
<tr><td><label for="language"><%='Language'.t%>:</label></td> <td><%=select :project,:lang,LANGTYPES%></td></tr>

<tr><td><label for="project_general_info"><%='Project General information'.t%>:</label></td>
<td colspan=3><%= text_area 'project', 'general_info', :rows=>"4",:cols=>"60"  %></td></tr>
</table>
</div>
</td></tr>
</table>
<!--[eoform:project]-->

